package com.gxa.shop.dao.order;

import com.gxa.shop.bean.dto.OrderDto;
import com.gxa.shop.bean.pojo.*;
import com.gxa.shop.bean.pojo.OrderItems;
import com.gxa.shop.bean.pojo.Orders;
import com.gxa.shop.bean.pojo.Regin;
import com.gxa.shop.bean.vo.OrderMyVo;
import com.gxa.shop.bean.vo.OrderVo;


import java.util.List;

/**
 * com.gxa.shop.dao
 * User: coma
 * Description:
 * Version: V1.0
 */
public interface OrderDao {
    List<Address> findUserAddresses(Integer userId);
    List<Product> findUserCartProducts(Integer userId);
    Regin findRegionByExpressfeeId(Integer expressfeeId);
    Address getAddressById(Integer addressId);
    Integer saveOrder(Orders orders);
    boolean saveOrderItems( Integer orderId,List<OrderItems> orderItems);
    List<Orders> findByOrderId(Integer orderId);

    int updateOrder(OrderDto orderDto);

    List<OrderVo> selectOrder(OrderDto orderDto);

    Long getAllOrderTotal(OrderDto orderDto);

    int getTotalCount(Integer userId, Integer status);

    List<OrderMyVo> getOrderInfo(Integer userId,Integer page,Integer pageSize,Integer status);
}
